package com.example.shardingsphere.mapper;

import com.example.shardingsphere.entity.Dict;
import com.example.shardingsphere.entity.Order;
import org.apache.ibatis.annotations.*;

import java.util.List;

/**
 * ^_^ ^_^
 *
 * @author wuquan
 * @date 2021/11/04
 */
@Mapper
public interface DictMapper {


    /*
    id已配置用 雪花算法生成
     */
    @Insert("insert into t_dict values( #{id},#{name})")
    public void insert(Dict dict);


    @Delete("delete from   t_dict where id = #{id}")
    public void del(Integer id);

}
